<template>
  <div class="my-head f-sb-c">
    <div id="left" class="f-fs-c">
      <router-link to="/personal" id="img-box" class="f-c-c">
        <img class="circle rotate" src="@/public/img/defaultAvatar.gif" />
      </router-link>
      <div id="info-box">
        <div>欢迎您，<router-link to="/personal">XXX用户</router-link></div>
        <div class="f-fs-fs">
          <span>退出登录</span>
          <span>修改资料</span>
        </div>
      </div>
    </div>
    <h1 id="middle" class="f-c-c">HXOV 后台管理中心</h1>
    <div id="right"></div>
  </div>
</template>
<script>
export default {
  name: "myHead",
  data() {
    return {};
  },
};
</script>
<style lang="scss" scoped>
.my-head {
  color: #bbbbbb;
  height: 90px;
  min-width: 1000px;
  background: #393d49;
}
a {
  color: $theme-color;
  &:hover {
    color: $theme-color;
  }
}
#left {
  height: 100%;
  #img-box {
    height: 80px;
    width: 80px;
    margin: 0 10px;
    img {
      height: 90%;
      width: 90%;
      &:hover {
        height: 100%;
        width: 100%;
      }
    }
  }
  #info-box {
    // font-size: 14px;
    div:first-child {
      text-align: center;
      margin-bottom: 10px;
    }
    div:last-child {
      span {
        cursor: pointer;
        &:not(:last-child) {
          margin-right: 10px;
        }
        &:hover {
          color: $theme-color;
        }
      }
    }
  }
}
#middle {
  color: $theme-color;
  font-size: 30px;
  margin-right: 1em;
  font-weight: normal;
}
</style>